﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel.DataAnnotations;

namespace CorreoSocialWeb.Models
{
    [System.ComponentModel.DataAnnotations.Schema.Table("Domicilios")]
    public class Domicilio
    {
        [Key]
        public int Id { get; set; }

        [System.ComponentModel.DataAnnotations.Schema.ForeignKey("Partido")]
        public int PartidoID { get; set; }

        [Association("Partido", "PartidoId", "Id")]
        public Partido Partido { get; set; }

        public String Direccion { get; set; }
    }
}